<template>
    <div>
        <div id="myHeader">
            <div class="vHeader_left">
                <span>后台管理系统</span>
            </div>
            <div class="vHeader_right">
                <el-button type="primary" @click="exit">退出</el-button>
            </div>
        </div>
    </div>


</template>

<script>
export default {
    name:'vHeader',
    methods:{
        exit(){
            window.sessionStorage.clear()
            this.$router.push('/login')
        }
    }
}
</script>

<style scoped>
.vHeader_left{
    float: left;
    padding-top: 0px;
    align-items: center;
}
.vHeader_left span{
    padding-left: 20px;
}

.vHeader_right{
    position: absolute;
    right: 20px;
}

</style>
